package com.web22_2_1.entity;


import java.util.Date;

public class Grade {
    public Grade() {
    }

    public Grade(int studentId, int courseId, float score, String term, Date examDate) {
        this.studentId = studentId;
        this.courseId = courseId;
        this.score = score;
        this.term = term;
        this.examDate = examDate;
    }

    @Override
    public String toString() {
        return "Grade{" +
                "gradeId=" + gradeId +
                ", studentId=" + studentId +
                ", courseId=" + courseId +
                ", score=" + score +
                ", term='" + term + '\'' +
                ", examDate=" + examDate +
                '}';
    }

    private int gradeId;
    private int studentId;
    private int courseId;
    private float score;
    private String term;
    private java.util.Date examDate;

    // Getters and Setters
    public int getGradeId() {
        return gradeId;
    }

    public void setGradeId(int gradeId) {
        this.gradeId = gradeId;
    }

    public int getStudentId() {
        return studentId;
    }

    public void setStudentId(int studentId) {
        this.studentId = studentId;
    }

    public int getCourseId() {
        return courseId;
    }

    public void setCourseId(int courseId) {
        this.courseId = courseId;
    }

    public float getScore() {
        return score;
    }

    public void setScore(float score) {
        this.score = score;
    }

    public String getTerm() {
        return term;
    }

    public void setTerm(String term) {
        this.term = term;
    }

    public Date getExamDate() {
        return examDate;
    }

    public void setExamDate(java.util.Date examDate) {
        this.examDate = examDate;
    }
}
